package com.amap.model;

public class Location {

	private double latitude;
	private double longitude;
	
	public Location(double latitude, double longitude) {
		super();
		this.latitude = latitude;
		this.longitude = longitude;
	}
	
	public double getLatitude() {
		return latitude;
	}
	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}
	public double getLongitude() {
		return longitude;
	}
	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public boolean equals(Location loc) {	
		if(latitude == loc.getLatitude() && longitude == loc.getLongitude())
			return true;
		return false;
	}
}	
